// 白名单
export const whiteList = ['/login', '/not-auth']

// 固定路由
const fixedRoutes: any[] = [
  {
    path: '/not-auth',
    name: 'not-auth',
    component: () => import('@/views/public/not-auth.vue')
  },
  {
    path: '/tech/test',
    name: 'tech-test',
    component: () => import('@/views/test/index.vue')
  }
]

const permissionFlg = import.meta.env.VITE_APP_PLUGINS.includes('permission')
if (permissionFlg) {
  fixedRoutes.push({
    path: '/',
    name: 'entry',
    component: () => import('@/views/public/entry.vue')
  })
} else {
  fixedRoutes.push({
    path: '/',
    name: 'entry',
    redirect: '/homepage'
  })
}

// 公开路由表
export default fixedRoutes
